package com.javen.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.javen.dao.BaoDao;
import com.javen.model.Bao;
import com.javen.model.Page;
import com.javen.service.BaoService;

@Service
public class BaoServicelmpl implements BaoService{
	@Autowired
	private BaoDao baoDao;
	public int add(Bao bao) {
		return this.baoDao.add(bao);
	}
	public int delete(int id) {
		// TODO Auto-generated method stub
		return this.baoDao.delete(id);
	}
	public int update(Bao bao) {
		// TODO Auto-generated method stub
		return this.baoDao.update(bao);
	}
	public List<Bao> select(Page page) {
		// TODO Auto-generated method stub
		return this.baoDao.select(page);
	}
	public int countAllByCarOwner(String carOwner) {
		// TODO Auto-generated method stub
		return this.baoDao.countAllByCarOwner(carOwner);
	}
	
	
	
}
